How was this long life granted to Al-Mehdi?